<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8;" />

<link rel="stylesheet" type="text/css" href="/dqchat/Public/css/inform.css"/>
<link rel="stylesheet" type="text/css" href="/dqchat/Public/css/Homepage/style.css"/>
<script  type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(function(){
  $(document).keypress(function(e) { 
    // 回车键事件 
	 if(e.which == 13) { 
	 $('.sumbit').trigger("click") ;
		   } 
   }); 
$('.sumbit').click(function(){
	username = $('.userid').val();
	psw = $('.psw').val();
	if(username=='用户ID'){
		alert("请输入您的用户ID");
		return false;
	}else if(psw==''){
		alert("请输入您的密码");
		return false;	
	}
	$.ajax({
	 type: "POST",
	 url: "<?php echo U('oper');?>",
	 data: {username:username,psw:psw},
	 dataType: "json",
	 success: function(data){
		if(data==1){
			message = "不存在该用户ID";
			 alert(message);
		}else if(data==2){
			message = "密码错误";
			 alert(message);
		}else if(data==3){
			window.location.href="<?php echo U('Center/index?hmenu=4');?>"
		}
		
							}
	})	
})

})
</script>
</head>



<body>
<div class="home_menu">
	<script type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js" ></script>
<style>
.active a {background:#0094FF;color:#fff;}
</style>
<script>


$(function(){
	menu = <?php echo I('get.hmenu');?>;	
	if(menu){
	$('.home_bk').eq(menu).addClass('active');
	}
	$('.home_bk:eq(1)').click(function(){	
	$('.home_bk').removeClass('active');
	$(this).addClass('active');	
	})
})



</script>
	<div class="home_menu1">
		<div class="home_menu2" onclick="window.location.href='<?php echo U('Home/Index/index');?>'" style="cursor:pointer;width:80px;height:70px;background:url('/dqchat/Public/img/<?php echo C('filename');?>/Hlogo.png') no-repeat; _background:none;
						  _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/dqchat/Public/img/<?php echo C('filename');?>/Hlogo.png');"></div>
		<div class="home_menu3"><a href="<?php echo U('Home/Index/index');?>"><?php echo C('title');?></a></div>
		<div class="home_menu4">		  <ul>
			<li class="home_bk"><a href="<?php echo U('Home/Index/index?hmenu=0');?>">首页</a ></li>
			<li class="home_bk"><a href ="/dqchat/download/<?php echo getdownload()?>">下载中心</a></li>
			<li class="home_bk"><a href="<?php echo U('Home/Index/rank?hmenu=2');?>">人气排行</a></li>
			<li class="home_bk"><a href="<?php echo U('User/Recharge/index?hmenu=3');?>">虚拟商城</a></li>
			<li class="home_bk"><a href="<?php echo U('User/index/index?hmenu=4');?>">个人中心</a></li>
			<li class="home_bk"><a href="<?php echo U('Home/Index/worker?hmenu=5');?>">加盟合作</a></li>		  </ul>
		</div>
		<div style="clear:both"></div>
	</div>
	<div class="main">
		<div class="login_wrap">
			<div class="login_main">
				<form>
					<ul class="login_ul">
						<li class="title"><?php echo C('title');?>用户登陆</li>
						<li class="username"><input type="text"  name="username" class='userid' value="用户ID" onfocus="if(this.value!=''&&this.value=='用户ID'){this.value=''}" onblur="if(this.value==''){this.value='用户ID'}" /></li>
						<li class="password"><input type="password" name="password" class="psw"  id="password" onfocus="this.style.backgroundImage='none'" onblur="if(this.value==''){this.style.backgroundImage='url(/dqchat/Public/img/pwtx.jpg)'}"/></li>
						<li class="sumbit"></li>
						<li class="warn"><a class="reg">立即注册</a><a class="forget">忘记密码?</a></li>
					</ul>
				</form>
			
			</div>
		
		</div>	</div>
	 	<div style="clear:both"></div>
	<div class="home_logo"><?php echo C('copyright');?></div>


</div>









</body>

</html>